package com.yiidata.rpc.hrpc;

import org.apache.hadoop.io.Writable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

/**
 * <pre>
 *
 * Created by zhenqin.
 * User: zhenqin
 * Date: 2018/1/6
 * Time: 11:37
 * Verdor: NowledgeData
 * To change this template use File | Settings | File Templates.
 *
 * </pre>
 *
 * @author zhenqin
 */
public class Message implements Writable {

    String hi;


    public Message() {
    }


    public Message(String hi) {
        this.hi = hi;
    }

    public String getHi() {
        return hi;
    }


    @Override
    public void write(DataOutput out) throws IOException {
        out.writeUTF(hi);
    }

    @Override
    public void readFields(DataInput in) throws IOException {
        this.hi = in.readUTF();
    }
}
